<?php slot('js_insideLoadFunction')?>
ADMIN_FORM.init();
$('#save-change-cate').click(function(){
	var $select = ('input[type=checkbox]');
	alert($select.length);
	if($select.length == 0){
		alert('<?php echo __('error-select', null, 'table_list')?>');
		$.fancybox.close();
		return false;
	}
	var $ids = Array();
	var $c = 0;
	$select.each(function(){
		alert($(this).val());
	});
	$.ajax({
		type: "POST",
		url: $ob.attr('data-url'),
		data: {
			ids: $ids
		},
		cache: false,
		success: function(data){
			$('div.change-cate-main').html(data);
		}
	});
});
<?php end_slot()?>
<div class="box-navigation">
	<?php echo $data['navigation']?>
</div>
<div class="clr"></div>
<div class="box-content">
		<?php echo $form['_csrf_token']?>
		<div class="clr"></div>
		<div class="box-content-main change-cate-main">
			<div class="clr"></div>
			<table class="table-list table-form" cellspacing="0" cellpadding="0" border="0">
				
				<tr class="class1">
					<td class="label"><?php echo __('label_name',null,'major_cates')?><span class="required">*</span></td>
					<td class="input">
							<select name="cate_name" id="cate_name">
								<option value="-1"><?php echo __('option_cate_all', null, 'major_majors')?></option>
								<?php foreach($data['cates'] as $ct):?>
								<option value="<?php echo $ct['id']?>"><?php echo $ct['name']?></option>
								<?php endforeach;?>
							</select>
					</td>
					
				</tr>
				<tr class="class1" style="background:#fff">
					<td class="label">&nbsp;</td>
					<td class="input"><input type="button" data-url="?action_name=<?php echo ADMIN_DEFINED::CHANGE_CATE?>&confirm=1" id="save-change-cate" name="save-change-cate" class="button" value="<?php echo __('button-save-cate', null, 'table_list')?>"/></td>
					
				</tr>
			</table>
		</div>
		<div class="clr"></div>
		
</div>

<style type="text/css">
<!--
#page-top, #page-user-region{
	display: none;
}
-->
</style>